
LOCAL_PATH = ${desDir}

ASN_CONVERTER_SOURCES += main.c V2xMessageDecode.c V2xMessageEncode.c

INCLUDE_PATH += -Iinclude

# This file may be used as an input for make(3)
# Remove the lines below to convert it into a pure .am file
TARGET = v2x_msg
CFLAGS += -g $(INCLUDE_PATH)
OBJS = ${ASN_CONVERTER_SOURCES:.c=.o}

ifeq (${_version_}, 0)
	LIBS += libasn1c_release.a
else
	LIBS += libasn1c_debug.a
endif

all: $(TARGET)
	
$(TARGET): ${OBJS}
	$(CC) $(CFLAGS) -o $(TARGET) ${OBJS} $(LDFLAGS) $(LIBS)

.SUFFIXES:
.SUFFIXES: .c .o

.c.o:
	$(CC) $(CFLAGS) -o $@ -c $<

clean:
	rm -f $(TARGET)
	rm -f $(OBJS)

